package com.dubbo.provider.service.impl;

import com.dubbo.api.service.AppleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Slf4j
@Service("appleService")
public class AppleServiceImpl implements AppleService {
    @Override
    public List<String> listApple() {
        List<String> list = new ArrayList<>();
        list.add("Red Apple");
        list.add("Yellow Apple");
        log.info("provider {}",list);
        return list;
    }
}
